import { defineStore } from 'pinia'

export const useLocationInfo = defineStore({
  id: 'location',
  state: () => {
    return {
      currentLocation: {
        latitude: 0,
        longitude: 0,
      },
    }
  },
  actions: {
    setLocationInfo(locationInfo: any) {
      this.currentLocation = locationInfo
    }
  },
  getters: {
    getLocationInfo: (state) => {
      return state.currentLocation
    },
  },
})
